<template>
  <TheForm ref="formRefs" title="充值记录" :api="viewApi" :options="rechargeViewOptions">
    <template v-slot:status="{ slotProps }">{{ slotProps.title }}</template>
    <template v-slot:createUser="{ slotProps }">{{ slotProps.title }}</template>
    <template v-slot:createTime="{ slotProps }">{{ slotProps.title }}</template>
    <template v-slot:examineUser="{ slotProps }">{{ slotProps.title }}</template>
    <template v-slot:examineTime="{ slotProps }">{{ slotProps.title }}</template>
    <template v-slot:finishTime="{ slotProps }">{{ slotProps.title }}</template>
  </TheForm>
</template>
  
  <script>
import TheForm from "@/components/TheCreateForm";
export default {
  components: {
    TheForm
  },
  data() {
    return {
      viewApi: null,
      rechargeViewOptions: [
        {
          type: "status",
          field: "status",
          title: "状态",
          slot: "status"
        },
        {
          type: "select",
          field: "stockLibraryCode",
          title: "充值商家",
          default: "",
          placeholder: "请选择...",
          api: null
        },

        {
          type: "input-number",
          field: "libraryName",
          title: "充值金额",
          default: "",
          placeholder: "请输入..."
        },
        {
          type: "select",
          field: "stockLibraryCode",
          title: "充值渠道",
          placeholder: "请选择...",
          options: [
            { label: "支付宝", value: "alipay" },
            { label: "微信", value: "weChat" },
            { label: "银行卡", value: "bank" },
            { label: "其他", value: "other" }
          ]
        },
        {
          type: "upload",
          field: "libraryAddressDetail",
          title: "转账凭证",
          default: []
        },
        {
          type: "textarea",
          field: "remark",
          title: "备注",
          default: ""
        },
        {
          type: "createUser",
          field: "createUser",
          title: "发起人",
          default: "",
          slot: "createUser"
        },
        {
          type: "createTime",
          field: "createTime",
          title: "发起时间",
          default: "",
          slot: "createTime"
        },

        {
          type: "examineUser",
          field: "examineUser",
          title: "审批人",
          default: "",
          slot: "examineUser"
        },
        {
          type: "examineTime",
          field: "examineTime",
          title: "审批时间",
          default: "",
          slot: "examineTime"
        },
        {
          type: "finishTime",
          field: "finishTime",
          title: "完成时间",
          default: "",
          slot: "finishTime"
        }
      ]
    };
  },
  mounted() {},
  methods: {}
};
</script>
  